Skip to content

Conversation

@zachschuermann
Copy link
Member

What changes are proposed in this pull request?

Opening for some discussion: do we want to take a Box or an Arc for transaction.add_files?

Currently we take a Box<dyn EngineData> - this means engine can't use it again after handing to our transaction. I'm raising this to consider Arc since none of our APIs actually require ownership - we can just take a shared Arc and everything basically "just works".

Though this brings up whether or not we want to allow this flexibility, as the add_files_metadata is not very useful outside of a transaction and in the future a Transaction should be able to just rebase itself?

This PR affects the following public APIs

transaction.add_files takes an Arc<dyn EngineData> instead of Box<dyn EngineData>

How was this change tested?

existing

@zachschuermann zachschuermann changed the title feat: Arc instead of Box feat: Arc instead of Box<dyn EngineData> for add_files API Sep 26, 2025
@zachschuermann
Copy link
Member Author

discussed some with @nicklan offline. figured I'd go ahead and open this to get some discussion but not sure if we actually want to pursue this

@codecov
Copy link

codecov bot commented Sep 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.76%. Comparing base (fc5ccb0) to head (5b5ee3a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1354   +/-   ##
=======================================
  Coverage   84.76%   84.76%           
=======================================
  Files         113      113           
  Lines       28421    28425    +4     
  Branches    28421    28425    +4     
=======================================
+ Hits        24091    24095    +4     
  Misses       3194     3194           
  Partials     1136     1136           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@OussamaSaoudi OussamaSaoudi self-requested a review September 30, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant